package br.ufpi.model;

import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

import org.hibernate.annotations.Type;

import br.ufpi.model.Enum.EnumPerfil;

@Embeddable
public class Login {
	
	private String nickName;
	private String email;
	private String password;
	@Type(type = "yes_no")
	private Boolean isActive
	;
	@Enumerated(EnumType.STRING)
	private EnumPerfil enumPerfil;
	
	private String tokenActive;

	public Login() {
		super();
		this.isActive = false;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public EnumPerfil getEnumPerfil() {
		return enumPerfil;
	}

	public void setEnumPerfil(EnumPerfil enumPerfil) {
		this.enumPerfil = enumPerfil;
	}

	public Boolean getIsActive() {
		return isActive;
	}

	public void setIsActive(Boolean isActive) {
		this.isActive = isActive;
	}

	public String getTokenActive() {
		return tokenActive;
	}

	public void setTokenActive(String tokenActive) {
		this.tokenActive = tokenActive;
	}

}
